<pw:html>
    <pw:head>
        <title>SISCO - Crear producto</title>

        <pw:component name="pw_include_view" data-show="true" data-src="head_scripts.html"></pw:component>
    </pw:head>

    <pw:body>

        <pw:component name="pw_include_view" data-show="true" data-src="header.html"></pw:component>

        <div class="container">
            <pw:component name="pw_include_view" data-show="true" data-src="messages.html"></pw:component>
            
            <pw:component name="pw_div" data-show="true" data-class="row" data-id="">
                <pw:container>

                    <pw:component name="pw_div" data-show="true" data-class="span3" data-id="">
                        <pw:container>
                            <pw:component name="pw_include_view" data-show="true" data-src="producto_sidebar.html"></pw:component>
                        </pw:container>
                    </pw:component>

                    <pw:component name="pw_div" data-show="true" data-class="span9" data-id="">
                        <pw:container>

                            <pw:component name="pw_form" data-show="true" data-class="" data-id="" data-action="" data-enctype="multipart/form-data" data-method="post">
                                <pw:container>

                                    <pw:component name="pw_text" data-show="true" data-content="Crear producto" data-tag="legend" data-free=""></pw:component>
                                    
                                    <pw:component name='pw_labeled_input' data-name='descripcion' data-id='descripcion' data-label='Descripción' data-type='text' data-value='' data-placeholder='ej. Leche entera' data-free=''></pw:component>
                                    <pw:component name='pw_labeled_input' data-name='ean13' data-id='ean13' data-label='Código EAN-13' data-type='text' data-value='' data-placeholder='ej. 7793940108006' data-free=''></pw:component>
                                    <pw:component name='pw_labeled_input' data-name='codigo_interno' data-id='codigo_interno' data-label='Código interno' data-type='text' data-value='' data-placeholder='ej. 0' data-free=''></pw:component>
                                    <pw:component name='pw_checkbox' data-name='loteable' data-id='loteable' data-label='Es loteable?' data-type='number' data-value='1' data-checked_condition="{$producto->loteable}" data-placeholder='' data-free=''></pw:component>
                                    
                                    <pw:component name="pw_text" data-show="true" data-content="Marca" data-tag="label" data-free=""></pw:component>
                                    <pw:component name="pw_combo_box" data-show="true" data-from="marcas" data-item="marca" data-name="marca" data-caption="nombre" data-optvalue="id" data-selectedcond="$producto->marca->id == $marca->id"></pw:component>
                                    
                                    <pw:component name="pw_text" data-show="true" data-content="Categoria" data-tag="label" data-free=""></pw:component>
                                    <pw:component name="pw_combo_box" data-show="true" data-from="categorias" data-item="categoria" data-name="categoria" data-caption="nombre" data-optvalue="id" data-selectedcond="$producto->categoria->id == $categoria->id"></pw:component>
                                    
                                    <pw:component name="pw_text" data-show="true" data-content="Origen" data-tag="label" data-free=""></pw:component>
                                    <pw:component name="pw_combo_box" data-show="true" data-from="origenes" data-item="origen" data-name="origen" data-caption="nombre" data-optvalue="id" data-selectedcond="$producto->origen->id == $origen->id"></pw:component>
                                    
                                    <pw:component name="pw_text" data-show="true" data-content="Medida" data-tag="label" data-free=""></pw:component>
                                    <pw:component name="pw_combo_box" data-show="true" data-from="medidas" data-item="medida" data-name="medida" data-caption="nombre" data-optvalue="id" data-selectedcond="$producto->medida->id == $medida->id"></pw:component>
                                    
                                    
                                    <pw:component name="pw_div" data-show="true" data-class="form-actions" data-id="">
                                        <pw:container>
                                            <pw:component name="pw_button" data-show="true" data-id="" data-name="" data-caption="Crear" data-free="class='btn btn-primary'" data-type="submit"></pw:component>
                                        </pw:container>
                                    </pw:component> <!-- .form-actions -->

                                </pw:container>
                            </pw:component> <!-- form -->

                        </pw:container>
                    </pw:component> <!-- .span9 -->

                </pw:container>
            </pw:component> <!-- .row -->

            <pw:component name="pw_include_view" data-show="true" data-src="footer.html"></pw:component>

        </div><!-- .container -->

        <pw:component name="pw_include_view" data-show="true" data-src="footer_scripts.html"></pw:component>
        
    </pw:body>
</pw:html>